import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
// 导入请求工具
import http from '@/utils/http'

// 导入频道组件
import MyChannel from '@/components/my-channel'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 全局注册频道组件
Vue.component(MyChannel.name, MyChannel)
Vue.use(ElementUI)

// 挂载请求工具,在Vue的原型对象上
Vue.prototype.$http = http

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
